<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('article/media_reports')?>' ><em>媒体列表</em></a> <span>|</span> <a href="javascript:;" class="on"><em>添加系列</em></a> </div>   
</div>
<div class="pad_10">
<form action="__SELF__" method="post" name="myform" id="myform" enctype="multipart/form-data">
<div class="table-list">
    <table>
		<tr>
			<th>请选择类型：</th>
			<td><select name="media_type">
				<?php foreach ($miedia_type as $key=>$v):
				?>
				<option value="<?php echo $key?>" <?php if($mediaInfo['media_type']==$key)echo'selected';?>><?php echo $v;?></option>
				<?php endforeach;?>
			 </select>
			</td>
		</tr>
        <tr>
            <th>介绍：</th>
            <td>
                <textarea rows="10" cols="50" name="content"><?php echo $mediaInfo['content']?></textarea><div class="content"></div>
            </td>
        </tr>
        <tr>
        <th>名字：</th>
        <td><input type="text" name="name" id="name" size="20" class="input-text" value="<?php echo $mediaInfo['name']?$mediaInfo['name']:null?>"><div class="infoShow"></div></td>
        </tr>
        <tr>
        <th>内容链接：</th>
        <td><input type="text" name="path_alias2" id="path_alias2" size="100" class="input-text" value="<?php echo $mediaInfo['path_alias2']?$mediaInfo['path_alias2']:"http://"?>"><div class="infoShow"></div></td>
        </tr>
        <tr>
            <th>媒体小图：</th><td><input type="file" class="file" name="upimage_adv" id="upimage_adv" >
            <img src="<?php echo $mediaInfo['media_img'] ?>" width="100" /><br />
        </td>
        </tr>
        <tr>
        <th>图片链接：</th>
        <td><input type="text" name="path_alias" id="path_alias" size="100" class="input-text" value="<?php echo $mediaInfo['path_alias']?$mediaInfo['path_alias']:"http://"?>"><div class="infoShow"></div></td>
        </tr>
		 <tr>
        <th>排序：</th>
        <td><input type="text" name="listorder" class="input-text" value="<?php echo $mediaInfo['listorder']?>" /></td>
      </tr>
    </table>  
    <input name="dosubmit" type="submit" class="button" value="提交" id="dosubmit" />
</form>
</html>
